﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("Payment")]
    public class Payment
    {
        [Key]
        public int PaymentID { get; set; }

        public string Charges { get; set; }
        public DateTime PaymentDate { get; set; }
        public decimal TotalAmount { get; set; }

        [ForeignKey("Kardex")]
        public int KardexId { get; set; }
        public virtual Kardex Kardex { get; set; }

        [ForeignKey("User")]
        public string UserId { get; set; }
        public virtual User User { get; set; }

        [NotMapped]
        public DateTime InitialDate { get; set; }
        [NotMapped]
        public DateTime FinalDate { get; set; }
    }
}
